gnttab_setup_table_t op;
struct domain *d;
int i;
- unsigned long mfn;
+ unsigned long gpfn;
if ( count != 1 )
return -EINVAL;
(void)put_user(GNTST_okay, &uop->status);
for ( i = 0; i < op.nr_frames; i++ )
{
- mfn = __mfn_to_gpfn(d, gnttab_shared_mfn(d, d->grant_table, i));
- (void)put_user(mfn, &op.frame_list[i]);
+ gpfn = gnttab_shared_gpfn(d, d->grant_table, i);
+ (void)put_user(gpfn, &op.frame_list[i]);
}
}
#define gnttab_create_shared_mfn(d, t, i) ((void)0)
-#define gnttab_shared_mfn(d, t, i) \
+#define gnttab_shared_gpfn(d, t, i) \
( ((d) == dom0) ? \
((virt_to_phys((t)->shared) >> PAGE_SHIFT) + (i)) : \
(map_domain_page((d), 1UL<<40, virt_to_phys((t)->shared)), \
#define gnttab_shared_mfn(d, t, i) \
((virt_to_phys((t)->shared) >> PAGE_SHIFT) + (i))
+#define gnttab_shared_gpfn(d, t, i) \
+ (__mfn_to_gpfn(d, gnttab_shared_mfn(d, t, i)))
+
#define gnttab_log_dirty(d, f) mark_dirty((d), (f))
#endif /* __ASM_GRANT_TABLE_H__ */